package com.hubu.thread.threadpool;

import java.util.concurrent.ThreadFactory;

public class DefaultThreadFactory implements ThreadFactory {
    private int count=0;
    @Override
    public Thread newThread(Runnable r) {
        return new Thread(r,"线程"+(count++));
    }
}
